<?php
Route::group([
    'middleware' => 'businessAuth'
], function () {
    Route::get ('api/admin/auth/me', 'Auth\Controllers\AuthController@adminAuthMe');
    Route::get ('api/admin/community', 'Admin\Controllers\ConfigController@communityIndex');
    Route::post('api/admin/community/update', 'Admin\Controllers\ConfigController@communityCreateOrUpdate');
    Route::post('api/admin/community/delete', 'Admin\Controllers\ConfigController@communityDelete');

    Route::get ('api/admin/site', 'Admin\Controllers\ConfigController@siteIndex');
    Route::post('api/admin/site/update', 'Admin\Controllers\ConfigController@siteCreateOrUpdate');
    Route::post('api/admin/site/delete', 'Admin\Controllers\ConfigController@siteDelete');

    Route::get ('api/admin/subway', 'Admin\Controllers\ConfigController@subwayIndex');
    Route::post('api/admin/subway/update', 'Admin\Controllers\ConfigController@subwayCreateOrUpdate');
    Route::post('api/admin/subway/delete', 'Admin\Controllers\ConfigController@subwayDelete');

    Route::post('api/admin/house/release', 'Admin\Controllers\HouseController@releaseOrUpdate');
    Route::post('api/admin/house/delete', 'Admin\Controllers\HouseController@houseDelete');
    Route::get ('api/admin/house/index', 'Admin\Controllers\HouseController@index');

    Route::post('api/admin/bbs/release', 'Admin\Controllers\ConfigController@bbsRelease');
    Route::get ('api/admin/bbs/index', 'Admin\Controllers\ConfigController@bbsIndex');
    Route::post('api/admin/bbs/delete', 'Admin\Controllers\ConfigController@bbsDelete');

    Route::post('api/admin/commit-tag/delete', 'Admin\Controllers\ConfigController@commitTagDelete');
    Route::post('api/admin/commit-tag/create', 'Admin\Controllers\ConfigController@commitTagCreate');

    Route::post('api/admin/house-wanted/release', 'Admin\Controllers\HouseController@houseWantedRelease');
    Route::post('api/admin/house-wanted/delete', 'Admin\Controllers\HouseController@houseWantedDelete');
    Route::get ('api/admin/house-wanted/index', 'Admin\Controllers\HouseController@houseWantedIndex');
    Route::get ('api/admin/house-wanted/one', 'Admin\Controllers\HouseController@houseWantedOne');

    Route::get ('api/admin/house-order/index', 'Admin\Controllers\OrderController@orderIndex');
    Route::post('api/admin/house-order/update', 'Admin\Controllers\OrderController@orderUpdate');
    Route::post('api/admin/house-order/transfer', 'Admin\Controllers\OrderController@transfer');


    Route::post('api/admin/banner/index', 'Admin\Controllers\ConfigController@bannerIndex');
    Route::post('api/admin/banner/update', 'Admin\Controllers\ConfigController@bannerUpdateOrCreate');
    Route::post('api/admin/banner/delete', 'Admin\Controllers\ConfigController@bannerDelete');

    Route::get ('api/admin/cert/index', 'Admin\Controllers\UserController@certIndex');
    Route::get ('api/admin/user/index', 'Admin\Controllers\UserController@index');
    Route::post('api/admin/user/update', 'Admin\Controllers\UserController@userUpdate');
    Route::get ('api/admin/user/invited', 'Admin\Controllers\UserController@userInvited');

    Route::post('api/admin/user/balance', 'Admin\Controllers\UserController@balanceUpdate');
    Route::post('api/admin/user/integral', 'Admin\Controllers\UserController@integralUpdate');

    Route::get ('api/admin/withdraw/index', 'Account\Controllers\AccountController@withdrawAdminIndex');
    Route::post('api/admin/withdraw/update', 'Account\Controllers\AccountController@withdrawAdminUpdate');

    Route::get ('api/admin/contact/index', 'Admin\Controllers\UserController@adminContactUsIndex');

    Route::get ('api/admin/comment/index', 'Admin\Controllers\HouseController@commentIndex');
    Route::post('api/admin/comment/delete', 'Admin\Controllers\HouseController@commentDelete');
});
Route::get ('api/admin/bbs/one', 'Admin\Controllers\ConfigController@bbsOne');
Route::get ('api/admin/house/one', 'Admin\Controllers\HouseController@houseById');
Route::get ('api/admin/house/tag', 'Admin\Controllers\HouseController@tagIndex');
Route::post('api/admin/house/tag/update', 'Admin\Controllers\HouseController@tagCreateOrUpdate');
Route::post('api/admin/house/tag/delete', 'Admin\Controllers\HouseController@tagDelete');

